<%@ page contentType="text/html;charset=GBK" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <meta charset="utf-8">
    <title>快速注册</title>
    <link rel="stylesheet" href="${ctx}/assets/css/base.css">
    <link rel="stylesheet" href="${ctx}/assets/css/goto.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="goto_bg">
    <div class="warning_content">
        <div class="<c:if test="${code == 10009}">goto_success</c:if><c:if test="${code != 10009}">goto_warning</c:if>">


            <h1>
                ${code}aa
                <span id="time" style="color: red">5</span>秒后将自动关闭页面。
            </h1>


        </div>
    </div>
</div>
</body>
<script language="JavaScript" type="text/javascript">
    function delayClose() {
        var delay = document.getElementById("time").innerHTML;
        if (delay > 0) {
            delay--;
            document.getElementById("time").innerHTML = delay;
        } else {
            window.opener = null;
            window.open('', '_self');
            window.close();
            //window.top.location.href = url;
        }
        setTimeout(function () {
            delayClose();
        }, 1000);
    }
</script>
<script type="text/javascript">
    //delayClose();
</script>
</html>
